// 请求banner 数据
import { ref } from 'vue'
import { getBannerAPI } from '@/apis/home'

export function useBanner() {
  const bannerList = ref([])
  getBannerAPI('2').then(res => {
    bannerList.value = res.result
  })
  
  return {
    bannerList
  }
}